# f = open('./readme','w',encoding='utf-8')
# str = 'nihao'
# f.write(str)
# f.close()

# f = open('./readme','r',encoding='utf-8')
# f.read()
# f.close()

# count = 0
# #通过列表来记录最多能打开的文件的个数
# flist = []
# while True:
#     f = open('./readme','r')
#     flist += f
#     count += 1
#     print(f'file count:{count}')

# f = open('./readme','r',encoding='utf-8')
# print(f.readlines())
# # print(f.readline())
# f.close()


# f = open('./readme','r',encoding='utf-8')
# for line in f:
#     print(line,end=' ')
# f.close()

# #第一次写
# f = open('./readme','w',encoding='utf-8')
# str = '真系好'
# f.write(str)
# f.close()
#
# #第二次写
# f = open('./readme','w',encoding='utf-8')
# str = '你好啊'
# f.write(str)
# f.close()
#
# f = open('./readme','r',encoding='utf-8')
# print(f.read())
# f.close()


# #上下文管理器，结束当前代码块会自动回收
# with open('./readme','r',encoding='utf-8') as f:
#     print(f.read())


